<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        //现在需要使用js代码来创建htnl标签，并显示在页面上
        //标签内容就是：<div>very beautiful</div>
        let divObj = document.createElement("div"); //在内存中<div></div>
        divObj.innerHTML = "very beautiful";  //但 "very beautiful" 还在内存中

        window.onload = function (){
            //添加子元素
            document.body.appendChild(divObj)
        }
    </script>
</head>
<body>

</body>
</html>